<titlemenu></titlemenu>
<div class="dj-card">
    <div class="dj-body" activate-input activate-select>
        <div class="card">
            <form class="form-horizontal" role="form" id="leaderAssessForm"
                  name="leaderAssessForm" ng-submit="save(leaderAssessForm.$valid)" novalidate>
                <div class="dj-formtable">
                    <table class="dj-table dj-table3">
                        <tr>
                            <th>姓名<span style="color: red">*</span></th>
                            <td ng-class="{ 'has-error' : this.leaderAssessForm.name.$invalid &&  this.leaderAssessForm.$submitted}">
                                <input type="text" class="form-control" name="name"
                                       autocomplete="off" autoclose="true"
                                       ng-model="dataModel.name" ng-required="true"/>
                                <span ng-show="this.leaderAssessForm.name.$invalid &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                            <th>身份证号<span style="color: red">*</span></th>
                            <td ng-class="{ 'has-error' : this.leaderAssessForm.idcard.$invalid &&  this.leaderAssessForm.$submitted}">
                                <input type="text" class="form-control" name="idcard"
                                       autocomplete="off" autoclose="true" maxlength="18"
                                       ng-model="dataModel.idcard" ng-required="true"/>
                                <span ng-show="this.leaderAssessForm.idcard.$invalid &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                            <th>性别</th>
                            <td>
                                <select class="form-control show-tick" ng-model="dataModel.sex"
                                        ng-options="type.dickey as type.dicvalue for type in sexList"
                                        class="form-control" name="sex">
                                    <option value="" selected>--请选择--</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>出生年月</th>
                            <td>
                                <input name="birthdate" class="form-control"
                                       autocomplete="off" autoclose="true"
                                       data-date-format="yyyyMM" data-date-type="string"
                                       data-start-view="1" data-min-view="1"
                                       ng-model="dataModel.birthdate"
                                       placeholder="" bs-datepicker/>
                            </td>
                            <th>学历</th>
                            <td>
                                <input type="text" class="form-control" name="education"
                                       autocomplete="off" autoclose="true"
                                       ng-model="dataModel.education"/>
                            </td>
                            <th>参加工作时间</th>
                            <td>
                                <input name="workdate" class="form-control"
                                       autocomplete="off" autoclose="true"
                                       data-date-format="yyyyMM" data-date-type="string"
                                       data-start-view="1" data-min-view="1"
                                       ng-model="dataModel.workdate"
                                       placeholder="" bs-datepicker/>
                                <span ng-show="this.leaderAssessForm.workdate.$invalid &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                        </tr>
                        <tr>
                            <th>试用期日期<span style="color: red;">*</span></th>
                            <td ng-class="{ 'has-error' : (this.leaderAssessForm.begindate.$invalid || this.leaderAssessForm.enddate.$invalid) &&  this.leaderAssessForm.$submitted}">
                                <input style="width: 90px;display: inline;" name="begindate" class="form-control"
                                       autocomplete="off" autoclose="true"
                                       data-date-format="yyyyMM" data-date-type="string"
                                       data-start-view="1" data-min-view="1"
                                       ng-model="dataModel.begindate"
                                       ng-required="true" placeholder="" bs-datepicker/>
                                ~
                                <input style="width: 90px;display: inline;" name="enddate" class="form-control"
                                       autocomplete="off" autoclose="true"
                                       data-date-format="yyyyMM" data-date-type="string"
                                       data-start-view="1" data-min-view="1"
                                       ng-model="dataModel.enddate"
                                       ng-required="true" placeholder="" bs-datepicker/>
                                <span ng-show="(this.leaderAssessForm.begindate.$invalid || this.leaderAssessForm.enddate.$invalid) &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                            <th>职称</th>
                            <td>
                                <input type="text" class="form-control" name="jobtitle"
                                       autocomplete="off" autoclose="true"
                                       ng-model="dataModel.jobtitle"/>
                            </td>
                            <th>现任职务<span style="color: red">*</span></th>
                            <td ng-class="{ 'has-error' : this.leaderAssessForm.position.$invalid &&  this.leaderAssessForm.$submitted}">
                                <input type="text" class="form-control" name="position"
                                       autocomplete="off" autoclose="true"
                                       ng-model="dataModel.position" ng-required="true"/>
                                <span ng-show="this.leaderAssessForm.position.$invalid &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                        </tr>
                        <tr>
                            <th>考核时间<span style="color: red;">*</span></th>
                            <td ng-class="{ 'has-error' : (this.leaderAssessForm.assessbegindate.$invalid || this.leaderAssessForm.assessenddate.$invalid) &&  this.leaderAssessForm.$submitted}">
                                <input style="width: 90px;display: inline;" name="assessbegindate" class="form-control"
                                       autocomplete="off" autoclose="true"
                                       data-date-format="yyyyMM" data-date-type="string"
                                       data-start-view="1" data-min-view="1"
                                       ng-model="dataModel.assessbegindate"
                                       ng-required="true" placeholder="" bs-datepicker/>
                                ~
                                <input style="width: 90px;display: inline;" name="assessenddate" class="form-control"
                                       autocomplete="off" autoclose="true"
                                       data-date-format="yyyyMM" data-date-type="string"
                                       data-start-view="1" data-min-view="1"
                                       ng-model="dataModel.assessenddate"
                                       ng-required="true" placeholder="" bs-datepicker/>
                                <span ng-show="(this.leaderAssessForm.assessbegindate.$invalid || this.leaderAssessForm.assessenddate.$invalid) &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                            <th>考核结果<span style="color: red">*</span></th>
                            <td ng-class="{ 'has-error' : this.leaderAssessForm.result.$invalid &&  this.leaderAssessForm.$submitted}">
                                <input type="text" class="form-control" name="result"
                                       autocomplete="off" autoclose="true"
                                       ng-model="dataModel.result" ng-required="true"/>
                                <span ng-show="this.leaderAssessForm.result.$invalid &&  this.leaderAssessForm.$submitted"
                                      class="error">必填.</span>
                            </td>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                </div>
                <bsfiles ng-model="reqFileModel"/>
                <div class="form_foot">
                    <button type="button" class="btn btn-default" ng-click="pagechange()">取消</button>
                    <button type="submit" class="btn btn-primary" form="leaderAssessForm">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>